//
//  HWkaifubiaoCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/10/8.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWkaifubiaoCell.h"

@interface HWkaifubiaoCell()

@property (weak, nonatomic) IBOutlet UIImageView *icoImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *miashuLabel;

@property (weak, nonatomic) IBOutlet UILabel *dateLabel;


@end

@implementation HWkaifubiaoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.icoImageView.layer.cornerRadius = 8;
    self.icoImageView.layer.masksToBounds = YES;
    self.xianqingBut.layer.cornerRadius = 13;
    self.xianqingBut.layer.masksToBounds = YES;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(HWKfModel *)model {
    
    _model = model;
    
    NSURL *url = [NSURL URLWithString:model.icon];
    [self.icoImageView sd_setImageWithURL:url placeholderImage:nil];
    self.nameLabel.text = model.name;
    self.miashuLabel.text = model.server_name;
    self.dateLabel.text = [NSString stringWithFormat:@"%@  %@",model.time1,model.time2];
    
    self.xianqingBut.backgroundColor  =QCchunseshensetupian;
    
    
    
}



@end
